﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using System.Globalization;
using System.Web.Mvc;
using System.Web.Security;
using Mobile.MainService;

namespace Mobile.Models
{
    public class Song 
    {
        [Key]
        public string ID { get; set; }
        public string Title { get; set; }
        public string Artist { get; set; }
        public int UpVotes { get; set; }

        public static int CompareByUpvotes(Song x, Song y)
        {
           int retVal = y.UpVotes.CompareTo(x.UpVotes);
           return retVal;
        }
    }
   
}